import request from '@/utils/request'

// 查询转科信息列表
export function listChangeDepartment(query) {
  return request({
    url: '/workstation/changeDepartment/list',
    method: 'get',
    params: query
  })
}

// 查询转科信息详细
export function getChangeDepartment(id) {
  return request({
    url: '/workstation/changeDepartment/' + id,
    method: 'get'
  })
}

// 新增转科信息
export function addChangeDepartment(data) {
  return request({
    url: '/workstation/changeDepartment',
    method: 'post',
    data: data
  })
}

// 修改转科信息
export function updateChangeDepartment(data) {
  return request({
    url: '/workstation/changeDepartment',
    method: 'put',
    data: data
  })
}

// 删除转科信息
export function delChangeDepartment(id) {
  return request({
    url: '/workstation/changeDepartment/' + id,
    method: 'delete'
  })
}
